package com.zpl.user.controller;


import com.zpl.core.Result;
import com.zpl.user.enums.Gender;
import com.zpl.user.enums.Role;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/common")
public class CommonController {
    @GetMapping("genders")
    public Result getGender(){
        return Result.success(Gender.toJson());
    }
    @GetMapping("roles")
    public Result getRole(){
        return Result.success(Role.toJson());
    }
}
